/*
 * @Desc:
 * @Version: v1.00
 * @Author: went
 * @Date: 2021-08-26 10:16:51
 * @LastEditors: went
 * @LastEditTime: 2022-11-15 16:53:25
 */
let BASE_URL = "";
let BASE_UP_URL = "";
let GET_ORGCODE_URL = "";
let APPID = "";
let APPKEY = "";
const TIME_OUT = 30000;

if (process.env.NODE_ENV === "development") {
  BASE_URL = "/api";
  BASE_UP_URL = "/up";
  GET_ORGCODE_URL = "http://101.207.142.35:42257/xgk";
  APPID = "TxVVWStfkj";
  APPKEY = "d7e913061f8341e0a5ce3ebaba01d6ff";
} else if (process.env.NODE_ENV === "production") {
  // 测试环境
  const origin = window.location.origin;
  BASE_URL = `${origin}/test/xgk/service/hsteach`; // 接口地址
  BASE_UP_URL = `${origin}/test/`; // 测试环境文件上传地址
  GET_ORGCODE_URL = `${origin}/test/xgk`; // 获取orgcode token
  APPID = "TxVVWStfkj";
  APPKEY = "d7e913061f8341e0a5ce3ebaba01d6ff";
  // 正式环境
  // BASE_URL = `${origin}/xgk/service/hsteach`; // 接口地址
  // BASE_UP_URL = `${origin}/`; // 文件上传地址
  // GET_ORGCODE_URL = `${origin}/xgk`; // 获取orgcode token
  // APPID = "tKedJT0TOV";
  // APPKEY = "6dd4c973812b481982eb5d3d0dc46df0";
} else {
  BASE_URL = "";
}
export { BASE_URL, TIME_OUT, BASE_UP_URL, APPID, APPKEY, GET_ORGCODE_URL };
